package com.neusoft.neu24.his3;

import javafx.application.Application;

import javafx.scene.Cursor;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

import java.io.IOException;

public class HelloApplication1 extends Application {
    @Override
    public void start(Stage stage) throws IOException {

//        stage.initModality(Modality.APPLICATION_MODAL);

        VBox root = new VBox(new Label("A JavaFX Label"));

        Scene scene = new Scene(root,1280,768);
        scene.setCursor(Cursor.OPEN_HAND);
//        为舞台设置场景
//        一个舞台可以切换多个场景

        stage.setScene(scene);
        stage.setX(50);
        stage.setY(50);

//        stage.setWidth(600);
//        stage.setHeight(300);
        stage.setTitle("Hello!");

//        stage.initStyle(StageStyle.UTILITY);
        stage.show();

//        stage.setFullScreen(true);

        stage.setTitle("东软云医院HIS系统 | 登录窗口");
//
//        Stage stage1 = new Stage();
//        stage1.initModality(Modality.WINDOW_MODAL);
//        stage1.show();

    }

    public static void main(String[] args) {
        launch();
    }
}